package com.weizhi.server.mapper;

import com.weizhi.server.dto.CategoryDto;
import com.weizhi.server.entity.Category;

import java.util.List;

public interface CategoryMapper {

    List<Category> all();

    int deleteByPrimaryKey(Long id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    void deleteByParentId(Long parentId);

    List<CategoryDto> selectByCourseId(Long id);
}